package com.xsp.service;

import com.xsp.entity.BookInfo;

import java.util.List;

/**
 * @author xsp
 * @date 2024/3/9
 * @desc
 */
public interface BookService {
    default void add(BookInfo bookInfo) {
    }

    default List<BookInfo> list() {
        return null;
    }

    default List<BookInfo> find(String name) {
        return null;
    }


    default BookInfo find(Integer id) {
        return null;
    }


    default boolean remove(Integer id) {
        return false;
    }


    default boolean modify(BookInfo bookInfo) {
        return false;
    }

}
